App.SubWindow = Ext.extend(Ext.Window, {
	width: 500
	,constrainHeader: true
	,maximizable: true
	,minimizable: true
	,closeAction: 'hide'
	,listeners: {
		minimize: function(win){
			win.hide();	
		}	
	}
	,constructor: function(config){
		if(!config.boxMaxHeight && config.renderTo){
			config.boxMaxHeight = Ext.fly(config.renderTo).getHeight();
		}
		Ext.apply(this, config);
		App.SubWindow.superclass.constructor.call(this, config);
	}
});